import React from 'react';
import { HashRouter as Router, Route, Switch, Redirect } from 'react-router-dom';

import Home from './views/Home';
import Details from './views/Details';

class App extends React.Component {
  render() {
    return(
      <Router>
        <Switch>
          <Route path='/details' component={Details}></Route>
          <Route path='/' component={Home}></Route>
          <Redirect to="/"></Redirect>
        </Switch>
      </Router>
      // <h1>hehe</h1>
    )
  }
}

export default App;
